package com.ikun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ikun.entity.Notices;

public interface NoticesDao {
    List<Notices> findAllNotices();

    List<Notices> findByContent(@Param("keyword") String keyword);

    List<Notices> findByList(@Param("noticeId") Integer noticeId);

    String addNotice(String content, String title);

    List<Notices> findNoticesById(@Param("userId") Integer userId);

    int publishToOwners(Notices notices);
}
